package com.hdax.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hdax.entity.CusDrive;
import com.hdax.dao.CusDriveMapper;
import com.hdax.service.CusDriveService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * 试驾表 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-03-22
 */
@Service
public class CusDriveServiceImpl extends ServiceImpl<CusDriveMapper, CusDrive> implements CusDriveService {

    @Autowired
    private CusDriveMapper cusDriveMapper;

    public IPage<CusDrive> findCusDriveNotHandle(IPage<?> page, Map map){
       return cusDriveMapper.findCusDriveNotHandle(page,map);
    }
    public Integer updateCusDriveCancel(Integer id,String updateTime){
        return cusDriveMapper.updateCusDriveCancel(id,updateTime);
    }
    public IPage<CusDrive> findCusDriveIsHandle(IPage<?> page, Map map){
        return cusDriveMapper.findCusDriveIsHandle(page,map);
    }

    @Override
    public Integer updateNotes(String notes, Integer id,String updateTime) {
        return cusDriveMapper.updateNotes(notes,id,updateTime);
    }

    @Override
    public Integer updateIDCardSource(String IDCardSource, Integer id) {
        return cusDriveMapper.updateIDCardSource(IDCardSource,id);
    }

    @Override
    public Integer updateDriveCardSource(String driveCardSource, Integer id) {
        return cusDriveMapper.updateDriveCardSource(driveCardSource,id);
    }

    @Override
    public Integer findThisMonthCusDriveCount() {
        return cusDriveMapper.findThisMonthCusDriveCount();
    }

    @Override
    public Integer findCusDriveCount() {
        return cusDriveMapper.findCusDriveCount();
    }

    @Override
    public Float findCusDriveChainCompare() {
        return cusDriveMapper.findCusDriveChainCompare();
    }

    @Override
    public Map findThisYearCusDriveIncre() {
        return cusDriveMapper.findThisYearCusDriveIncre();
    }
}
